﻿<div id="wrapper">
<div id="container" class="full-width for-gal">
	<h1>Portfolio</h1>
	<?php echo $this->Html->link('Add Curso', array('controller' => 'cursos', 'action' => 'add')); ?>
	<section class="gallery">        
		<div class="navig-category">
			<a class="button act" href=""><span>View all (204)</span></a>
			<a class="button" href=""><span>Web design (21)</span></a>
			<a class="button" href=""><span>Illustrations (113)</span></a>
			<a class="button" href=""><span>Sculpture (7)</span></a>
			<a class="button" href=""><span>Photography (38)</span></a>
			<a class="button" href=""><span><i class="lik"></i>Popular</span></a>
			<a class="button categ td" href="#grid"><span><i class="ico-f"></i></span></a>
			<a class="button categ list act" href="#list"><span><i class="ico-t"></i></span></a>
		</div>
		<div class="gallery-inner">
			<?php foreach ($cursos as $curso): ?>
				<div class="textwidget text first">
					<div class="textwidget-photo">
						<?php echo $this->Html->link($this->Html->image("462x272.jpg", array('width'=>'462','height'=>'272')),
													"/images/large/14.jpg", array('escape' => false,
																				"class"=>"photo highslide",
																				"onclick"=>"return hs.expand(this, galleryOptions)"));?>
						<a class="like"><span>11</span></a>
					</div>
					<div class="info half">                      
						<?php echo $this->Html->link($curso['Curso']['titulo'], array(
														'controller' => 'cursos',
														'action' => 'view',
														'id' => $curso['Curso']['id'],
														'slug' => $curso['Curso']['pretty_titulo']
													),array('class' => 'head')); ?>
						<p>
							<?php echo $curso['Curso']['descripcion']; ?>
						</p> 
						<?php echo $this->Html->link($this->Html->tag('span', $this->Html->tag('i',' ',array('class'=>'more')).'Detalles'), array(
														'controller' => 'cursos',
														'action' => 'view',
														'id' => $curso['Curso']['id'],
														'slug' => $curso['Curso']['titulo']
													),array('escape' => false, 'class' => 'button')); ?>
													
					</div>
				</div>
			<?php endforeach; ?>
		</div>
	</section>
</div><!-- #container-->    
</div>
